package Controller;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class AException {
    @ExceptionHandler(Exception.class)
    public Resultful doException(Exception e){
        System.out.println(e);
        return new Resultful(Code.GET_ERRO,null,"该请求映射有问题");
    }
}
